<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title>意见反馈</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
	</head>
	<body class="bg_ff">
		<header class="mui-bar mui-bar-nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">意见反馈</h1>
		</header>
		<div class="mui-content bg_ff">
		   <div class="textarea padding_12 mg_top20">
		   	<textarea name="" rows="" cols="" placeholder="请输入您要说的话......"></textarea>
		   </div>
			
			
			
			<p class="text-center mg_top40 width90"><a href="javascript:void(0);" class="big_btn" onclick="feedback()">提交</a></p>
		</div>
		</div>
		<div class="msg-spring"></div>
		
		<script src="js/mui.js"></script>
		<script src="js/jquery-1.7.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			mui.init()
			//提交反馈
			function feedback(){
				var content = $('.textarea textarea').val()
				if (content){
					$.ajax({
					type:"POST",
						url:urlcom + "userCenter/feedback",
						async:true,
						dataType:'json',
						data:{
							userId:localStorage.getItem('userId'),
							content:content
						},
						success:function(res){
							if(res.code==0){
								msg('提交成功')
								
								setTimeout(function(){
									window.location.href='mySet.html'
								},1000)
								
							}
						}
				    })
				}else{
					msg('请输入反馈内容')
				}
				
			}
		</script>
	</body>

</html>
